home *** CD-ROM | disk | FTP | other *** search
/ IRIX 5.3 for Indy R4400 / IRIX 5.3 for Indy R4400 175MHz.img / dist / eoe2.idb / usr / sadm / install / scripts / i.awk.z / i.awk
Text File  |  1995-02-28  |  526b  |  34 lines

  1. #ident    "@(#)oampkg:pkgscripts/i.awk    1.5"
  2.  
  3. error=no
  4. while read src dest
  5. do
  6.     [ "$src" = /dev/null ] && continue
  7.  
  8.     echo "Modifying $dest"
  9.     savepath=$PKGSAV/awk${dest}
  10.     dirname=`dirname $savepath`
  11.     if [ $? -ne 0 ]
  12.     then
  13.         error=yes
  14.         continue
  15.     fi
  16.     if [ ! -d $dirname ]
  17.     then
  18.         # ignore return code since mkdir has bug
  19.         mkdir -p $dirname
  20.     fi
  21.  
  22.     cp $src $savepath &&
  23.     /usr/sadm/install/scripts/cmdexec /usr/bin/awk install $savepath $dest
  24.  
  25.     if [ $? -ne 0 ]
  26.     then
  27.         error=yes
  28.         continue
  29.     fi
  30. done
  31. [ "$error" = yes ] &&
  32.     exit 2
  33. exit 0
  34.